<template>
	<view>
		<uni-row  class="top">
			<uni-grid :column="3" :showBorder="false"  :square="false">
				<uni-grid-item>
					<text class="text1 text">可用余额(元)</text>
					<text class="text">0.00</text>
				</uni-grid-item>
				<uni-grid-item>
					<text class="text1 text">冻结资金(元)</text>
					<text class="text">0.00</text>
				</uni-grid-item>
				<uni-grid-item>
					<text class="text1 text">累计消费(元)</text>
					<text class="text">0.00</text>
				</uni-grid-item>
			</uni-grid>
			<view class="btns">
				<button plain type="default" size="mini">提现</button>
				<button plain type="default" size="mini">押金</button>
				<button plain type="default" size="mini">充值</button>
				
			</view>
			
		</uni-row>
		<uni-row>
			
						<view class="uni-padding-wrap uni-common-mt">
							<uni-segmented-control :current="current" :values="items" style-type="text"
								active-color="#dd524d" @clickItem="onClickItem" />
						</view>
						<view class="content">
							<view v-if="current === 0"><text class="content-text">暂无资金明细</text></view>
							<view v-if="current === 1"><text class="content-text">暂无提现记录</text></view>
							<view v-if="current === 2"><text class="content-text">暂无押金记录</text></view>
						</view>
				
		</uni-row>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: ['资金明细', '提现记录', '押金记录'],
				current: 0
			}
		},
		methods: {
			onClickItem(e) {
							if (this.current !== e.currentIndex) {
								this.current = e.currentIndex
							}
						}
			
		}
	}
</script>

<style>
 @import './new_file.css';
</style>
<style lang="scss">
	.example-body {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		padding: 0;
	}

	.uni-common-mt {
		margin-top: 30px;
	}

	.uni-padding-wrap {
		// width: 750rpx;
		padding: 0px 30px;
	}

	.content {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		justify-content: center;
		align-items: center;
		height: 150px;
		text-align: center;
	}

	.content-text {
		font-size: 14px;
		color: #666;
	}

	.color-tag {
		width: 25px;
		height: 25px;
	}

	.uni-list {
		flex: 1;
	}

	.uni-list-item {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex: 1;
		flex-direction: row;
		background-color: #FFFFFF;
	}


	.uni-list-item__container {
		padding: 12px 15px;
		width: 100%;
		flex: 1;
		position: relative;
		/* #ifndef APP-NVUE */
		display: flex;
		box-sizing: border-box;
		/* #endif */
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-bottom-style: solid;
		border-bottom-width: 1px;
		border-bottom-color: #eee;
	}

	.uni-list-item__content-title {
		font-size: 14px;
	}
</style>
